关于android:adb重新挂载失败

您所在的位置:网站首页 挂载system失败device or 关于android:adb重新挂载失败

关于android:adb重新挂载失败

2023-12-11 22:34| 来源: 网络整理| 查看: 265

我尝试了stackoverflow和在线中可用的所有命令和建议,但没有一个起作用

https://stackoverflow.com/a/13366444/1441666 https://stackoverflow.com/a/28018008

还有很多,但对我没有用

我收到以下错误-以下命令均无效。

12$adb root $adb disable-verity

对于

123$adb remount remount of / failed: Permission denied remount failed

所以然后我尝试了不同的命令

123456789101112131415161718$ adb shell mount -o rw,remount /system mount: '/system' not in /proc/mounts $ adb shell mount -o rw,remount / '/dev/root' is read-only $ adb shell  mount -o rw,remount -t /dev/block/stl12 system mount: 'system' not in /proc/mounts $ adb shell"su 0 mount -o rw,remount /system" mount: '/system' not in /proc/mounts $ adb shell $ su # mount -o rw,remount /system  mount: '/system' not in /proc/mounts 相关讨论 这可能对您有帮助,因为与我一起解决同一问题https:github.comd4rkensdmaid-publicissues2110#issuecom ment-440325101

12345678910111213> adb root > adb shell avbctl disable-verification Successfully disabled verification. Reboot the device for changes to take effect. > adb disable-verity using overlayfs Successfully disabled verity Now reboot your device for settings to take effect > adb reboot > adb root && adb remount remount succeeded > adb push ScreenCap.apk /system/app/ ScreenCap.apk: 1 file pushed. 33.1 MB/s (1640812 bytes in 0.047s) > adb reboot

我有同样的问题。解决方案是挂载根目录(/)。之后,您可以写入/ system。

1mount -o rw,remount /

不要忘记将状态重置为" ro"。

1mount -o ro,remount /

如果出现/ system not in / proc / mounts错误,则设备系统分区未安装任何目录。写入系统分区受到限制。

如果使用仿真器,请下载以前版本的系统映像。

截至目前,尚不支持使用Android Q编写系统分区,因此请改用android pie。

相关讨论 这个答案基本上是重复第一个。 两者的主要问题在于降低API级别并不是一种可以解决未来的问题。 另外,请提供一些来源,说明Android Q"不支持"执行此操作。 @Magudesh,有人说Android Q不支持在有根设备上写入系统分区? @avelyne在设备中支持扎根android Q,但在模拟器中不支持。 如果发布了Android R,则将启用android Q的生根功能。

在运行于Android OS 8.1的Rockchip平板电脑设备上工作时,我遇到了这个问题。我找到了一种将/ system重新安装到rw的方法,如下所示:

亚行外壳 su 坐骑grep系统

在第3步之后,您将看到cmd打印出来:

/dev/block/mmcblk1p11 on /system type ext4 (ro,dirsync,seclabel,relatime,data=ordered,inod e_readahead_blks=8)

(类型和路径可能会因设备而异)

现在使用命令:

busybox mount -o remount,rw –t /system

就我而言,是ext4,而是/ dev / block / mmcblk1p11

希望这可以帮助某人!

我在Android API 28中遇到此问题。

解决方法是使用较低版本的Android API级别24。之后,一切正常。

123456$ adb shell generic_x86:/ # mount -o rw,remount /system generic_x86:/ # exit [~] $ adb push /etc/hosts /system/etc/hosts /etc/hosts: 1 file pushed. 2.2 MB/s (7458 bytes in 0.003s)



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3